package kr.hyosang.dkbs.kiosk;

import java.io.InputStream;
import java.net.URL;
import java.util.ResourceBundle;

import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.Pane;
import javafx.scene.media.MediaView;
import kr.hyosang.dkbs.kiosk.widget.BusInfo;
import kr.hyosang.dkbs.kiosk.widget.DateTime;
import kr.hyosang.dkbs.kiosk.widget.News;
import kr.hyosang.dkbs.kiosk.widget.Player;
import kr.hyosang.dkbs.kiosk.widget.Ticker;

public class MainWindow implements Initializable {
	@FXML private ImageView imgLogo;
	@FXML private Label lblDate;
	@FXML private Label lblNoon;
	@FXML private Label lblTime;
	@FXML private MediaView mdaMedia;
	@FXML private Label lblDujung;
	@FXML private Label lblTerminal;
	@FXML private ImageView imgBusIcon;
	@FXML private Pane panTicker;
	@FXML private Pane panNews;
	
	
	@Override
	public void initialize(URL arg0, ResourceBundle arg1) {
		InputStream is = MainWindow.class.getClassLoader().getResourceAsStream("image/logo.jpg");
		Image img = new Image(is);
		imgLogo.setImage(img);
		
		DateTime dt = new DateTime(lblDate, lblNoon, lblTime);
		
		Player player = new Player(mdaMedia);
		
		BusInfo busInfo = new BusInfo(imgBusIcon, lblDujung, lblTerminal);
		
		News news = new News(panNews);
		
		Ticker ticker = new Ticker(panTicker);

	}
	
	
}
